<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/4
 * Time: 16:42
 */

namespace app\api\controller;


use app\api\service\ToToken;
use think\Controller;

class BaseController extends Controller
{
    /*权限作用域验证权限*/
    protected function checkPrimaryScope(){
        ToToken::needPrimaryScope();
    }

    /*权限作用域验证权限    */
    protected function checkExclusiveScope(){
        ToToken::needExclusiveScope();
    }
}